    /***
     * @description axios封装
     * @file api.ts
     * @author andy
     * @date 2024/3/22 16:40
     */
// file:api.s
// 1、导入axios以及拦截器
import service from './request'




//登录接口
export const login = (data:any) => {
    return service({
        url: '/user/index/login',
        method: 'post',
        data
    })
};
//商家列表
export const ShopList = (data:any) => {
    return service({
        url: '/user/index/ShopList',
        method: 'post',
        data
    })
};

// 树形菜单列表
export const menuTreeList = (data:any) => {
    return service({
        url: '/user/index/menuTreeList',
        method: 'post',
        data
    })
};
// 品牌列表
export const getBrandList = (data:any) => {
    return service({
        url: '/shop/index/getBrandList',
        method: 'post',
        data
    })
};

// 添加品牌
export const AddBrand = (data:any) => {
    return service({
        url: '/shop/index/AddBrand',
        method: 'post',
        data
    })
};

// 修改品牌状态
export const updataStatus = (data:any) => {
    return service({
        url: '/shop/index/updataStatus',
        method: 'post',
        data
    })
};
// 删除品牌
export const deleteBrand = (brandId:any) => {
    return service({
        url: '/shop/index/deleteBrand/'+brandId,
        method: 'post',
        
    })
};
// 商品字典表
export const getDictList = (typeId:any) => {
    return service({
        url: '/shop/dict/getDictList/'+typeId,
        method: 'post',
        
    })
};
// 删除商品
export const deleteProd = (prod:any) => {
    return service({
        url: '/shop/prod/deleteProd/'+prod,
        method: 'post',
        
    })
};

// 批量删除品牌
export const DeleteBacth = (data:any) => {
    return service({
        url: '/shop/index/DeleteBacth',
        method: 'post',
        data
    })
};
// 类型列表
export const TypetreeList = () => {
    return service({
        url: '/shop/type/TypetreeList',
        method: 'post',
        
    })
};
// 添加类型
export const addType = (data:any) => {
    return service({
        url: '/shop/type/addType',
        method: 'post',
        data
    })
};
// 修改类型
export const updateType = (data:any) => {
    return service({
        url: '/shop/type/updateType',
        method: 'post',
        data
    })
};
// 商品列表
export const ProdList = (data:any) => {
    return service({
        url: '/shop/prod/ProdList',
        method: 'post',
        data
    })
};
// 树形商品类型下拉列表
export const SelecttreeList = () => {
    return service({
        url: '/shop/type/SelecttreeList',
        method: 'post',
        
    })
};
// 品牌列表
export const BrandList = () => {
    return service({
        url: '/shop/index/BrandList',
        method: 'post',
        
    })
};
// 添加商品
export const GetAddProd = (data:any) => {
    return service({
        url: '/shop/prod/GetAddProd',
        method: 'post',
        data
    })
};
// 添加商品附件
export const AddprodAtta = (data:any) => {
    return service({
        url: '/shop/prod/AddprodAtta',
        method: 'post',
        data
    })
};

// 批量删除商品
export const deleteBatchProd = (data:any) => {
    return service({
        url: '/shop/prod/deleteBatchProd',
        method: 'post',
        data
    })
};
// 分页获取订单列表
export const GetOrderList = (data:any) => {
    return service({
        url: '/shop/order/GetOrderList',
        method: 'post',
        data
    })
};
// 获取商品列表
export const getProdInfoList = () => {
    return service({
        url: '/shop/order/getProdInfoList',
        method: 'post',
        
    })
};
// 添加订单
export const addOrder = (data:any) => {
    return service({
        url: '/shop/order/addOrder',
        method: 'post',
        data
    })
};
// 批量删除订单
export const deleteOrderBatch = (data:any) => {
    return service({
        url: '/shop/order/deleteOrderBatch',
        method: 'post',
        data
    })
};
// 批量删除订单
export const getProdToEs = (data:any) => {
    return service({
        url: '/shop/prod/getProdToEs',
        method: 'post',
        data
    })
};



